<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/includes/tags.jsp" %>
<div class="center_text">

    <h2><s:text name="ui.latest.news"/></h2>

    <s:bean name="org.komarichin.services.NewsService" var="nService"/>
    <s:set var="uLang" value="language"/>

    <s:iterator value="#nService.getLatestNews()">
        <div class="icon_img_tab">
            <img src="/img/news.png" class="img_left picto_img" alt="${name}"
                 title='<s:text name="ui.news"/> - ${name}'/>
            <s:url var="newsLink" namespace="/news" action="view">
                <s:param name="news.id" value="id"/>
            </s:url>
            <b><s:property value="name"/></b><br/>
            <s:property value="description"/>&nbsp;<a href="${newsLink}"
                                                      title='${name} - <s:text name="ui.more"/>'><s:text
                name="ui.more"/></a>
        </div>
    </s:iterator>
    <s:url namespace="/news" action="archive" var="newsArchive"/>
    <div class="icon_img_tab">
        <a href="${newsArchive}" title='<s:text name="ui.archive"/>'><s:text name="ui.archive"/></a>
    </div>
</div>
